package com.sjd.mall.service.goods;

import java.math.BigDecimal;

/**
 * @author : Mr.s
 * @version : 1.0
 * @description : 商品折扣service
 * @date : 2022-01-13 10:43
 */
public interface GoodsDiscountService {

    /**
     * 初始化商品折扣
     * @return return
     */
    boolean initGoodsDiscount();

    /**
     * 设置/修改 商品折扣
     * @param discount discount
     * @param memberLevel memberLevel
     * @return  return
     */
    boolean setGoodsDiscount(Integer memberLevel, BigDecimal discount);

    /**
     * 获取商品折扣
     * @param memberLevel memberLevel
     * @return return
     */
    BigDecimal getGoodsDiscount(Integer  memberLevel);


    /**
     * 删除商品折扣
     * @param memberLevel  memberLevel
     * @return return
     */
    boolean delGoodsDiscount(Integer memberLevel);

}
